package com.rabbitmqconsumer.service;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
@RabbitListener(queues = "fanout.First")
public class FanoutReceiverFirst {
	@RabbitHandler
	void process(Map ReceiverMessage){
		System.out.println("消费者FanoutReceiverFirst收到消息：" + ReceiverMessage);
	}
}
